package com.dzl.exchange.dao;

import com.dzl.exchange.pojo.WelfareExchangeMeal;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import com.dzl.base.mapper.BaseMapper;

import java.util.List;

/**
 * 兑换券组关联套餐表(WelfareExchangeMealGroup)表数据库访问层
 * @author caobucao
 * @date 2021-07-09 17:29:25
 */
@Repository
public interface WelfareExchangeMealMapper extends BaseMapper<WelfareExchangeMeal> {

    /**
     * 通过套餐ids找套餐
     * @date 2021/8/4 15:28
     * @author caobucao
     * @param idsList ids
     * @return java.util.List<com.dzl.exchange.pojo.WelfareExchangeMeal>
     */
    List<WelfareExchangeMeal> selectByIds(@Param("idsList") List<Integer> idsList);

    /**
     * 通过兑换券组id删除该兑换券组的套餐信息---逻辑删除
     * @date 2021/8/7 9:29
     * @author caobucao
     * @param exchangeGroupId 兑换券组id
     * @return java.lang.Integer
     */
    Integer deleteByExchangeGroupId(@Param("exchangeGroupId") Integer exchangeGroupId);
}
